The while statement will execute a block of code while a condition is true.. 

while (condition)
{
    code to be executed
}

#Title: JavaScript Looping Statements
#Element: 278: while The while statement will execute a block of ...
#Article: 172: JavaScript Looping Statements